package com.work.entity;

/**
 * 返回码
 */
public class StatusCode {

    public static final int ADD_OK=20000;//添加成功
    public static final int ADD_ERROR =20001;//添加失败
    public static final int DELETE_OK=20010;//删除成功
    public static final int DELETE_ERROR =20011;//删除失败
    public static final int UPDATE_Ok =20020;//修改成功
    public static final int UPDATE_ERROR =20021;//修改失败
    public static final int FIND_Ok =20030;//查询成功
    public static final int FIND_ERROR =20031;//查询失败
    public static final int LOGINERROR =20040;//用户名或密码错误
    public static final int ACCESSERROR =20050;//权限不足
    public static final int REMOTEERROR =20060;//远程调用失败
    public static final int REPERROR =20070;//重复操作

    public static final int ADD_DEVICE_MESSAGE_ERROR =40012;//设备添加失败,请求参数异常

    public static final int CLOSE_OK =30010;//关闭设备成功
    public static final int CLOSE_ERROR =30011;//关闭设备失败

    public static final int OPEN_OK =30020;//打开设备成功
    public static final int OPEN_ERROR =30021;//打开设备失败

    public static final int AUTODEVICE =90000;//自动失败,联系管理员


}